xen/arm: gic-v3: Clean-up the GIC*_PIDR2_* definitions
authorJulien Grall <julien.grall@citrix.com>
Mon, 14 Sep 2015 15:32:23 +0000 (16:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Sep 2015 10:47:52 +0000 (11:47 +0100)
commit55e8b12a5c054dfdf5feee1c3a84ffdfc2d38c83
tree40d450b360da601298c339ba9e63eaf02260e963
parentc57e6ebd8c3e490e353e68d96abec1dad01e72f5
xen/arm: gic-v3: Clean-up the GIC*_PIDR2_* definitions

GICR_PIDR2 and GICD_PIDR2 use the same register layout. Rather than
define twice, one of which is an alias to the other, introduce GIC_PIDR2_*
defines.

Also:
    * Use the same prefix for the mask and the value
    * Integrate the shift in the value to avoid shifting in the code
    * Use GICv* to match the value name in the spec
    * Move them in a proper place

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic-v3.c
xen/include/asm-arm/gic_v3_defs.h